package cn.tedu.calendar.mapper;

import cn.tedu.calendar.pojo.entity.Calendar;
import cn.tedu.calendar.pojo.vo.CalendarVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

@Mapper
@Repository
public interface CalendarMapper {
    void insertMemo(Calendar calender);

    void updateMemo(Calendar calender);

    List<CalendarVO> selectByUserId(Long userId);

    void deleteMemo(Long id);

    Collection<? extends CalendarVO> selectByData(Calendar calender);
}
